package com.itheima;

public class Test {
    public static void main(String[] args) {
        long staTime = System.currentTimeMillis();
        int sum = 0;
        for (int i = 0; i < 50000; i++) {
            sum += i;
        }
        System.out.println(sum);
        long endTime = System.currentTimeMillis();
        System.out.println(endTime-staTime);
    }
}
